package be.jprojects.subscription.gui;

import java.awt.BorderLayout;
import java.awt.Container;

import javax.swing.JFrame;
import javax.swing.JTabbedPane;

import javax.swing.JLabel;

import be.jprojects.subscription.gui.i18n.TranslatableTabbedPane;

public class SuperFrame extends JFrame {
	
	private JTabbedPane tabbedPane;
	private TableAndDetailPanel personPanel;
	
	public SuperFrame(){
		super.setTitle("Dit frame");
		super.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		//super.setBounds(20, 20, 0, 0);
		Container container = getContentPane();
		
		container.setLayout(new BorderLayout());
		
		personPanel = new PersonPanel(this);
		JLabel log = new JLabel("<html><p><font size=14>Log</font><ul style='color:red'><li>1</li><li>2</li></ul></p></html>");

		tabbedPane = new TranslatableTabbedPane();

		
		container.add(tabbedPane, BorderLayout.CENTER);
		tabbedPane.add("Persons", personPanel);
		tabbedPane.add("Log", log);
		tabbedPane.add("spotlight", new SpotlightPanel());
		super.setJMenuBar(new SubscriptionMenuBar());
	}

}
